<!--代码逻辑和样式库-->
<script src="./create-role.component.js"></script>
<style src="./create-role.scss" scoped lang="scss"></style>

<template>
  <div>
    <el-dialog :visible.sync="showDialog" width="1300px" @close="closeDialog()">
      <span slot="title">
        <span class="aq-text-weight-bolder">职位管理</span>
        <i class="aq-margin-left-12 aq-margin-right-12 el-icon-arrow-right"></i>
        {{ title }}
      </span>
      <el-form ref="dataForm" :rules="editRules" :model="editForm">
        <el-row :gutter="20">
          <el-col :span="5">
            <el-form-item prop="name">
              <div><span class="aq-text-color-danger">*</span>职位名称<span class="aq-search-text">请根据规则填写职位名称</span></div>
              <el-input v-model="editForm.name" placeholder="请输入职位名称" />
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item>
              <div>职位描述</div>
              <el-input v-model="editForm.description" placeholder="请输入职位描述" />
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <span slot="footer">
        <el-button @click="closeDialog()">取消</el-button>
        <el-button type="primary" :loading="loading" @click="save()">提交数据</el-button>
      </span>
    </el-dialog>
  </div>
</template>
